import request from '@/utils/request'

/**
 * 登录校验
 * @param {*} form 
 * @returns 
 */
export const adminLogin = (form) => {
    return request.post('/admin/login', {
        username: form.username,
        password: form.password,
        code: form.code
    })
}

/**
 * 获取邮箱验证码
 */
export const getCodeService = () => {
    return request.post('/admin/mail')
}